/**   
 * Copyright 2009-2010 Sönke Sothmann, Steffen Schäfer and others
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.googlecode.gwtgl.gen.api;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * The IBinding interface is a marker for generated bindings. The interface
 * provides a init method to set the native object on which the generated
 * methods should be called. To support generated bindings, you must create an
 * interface which contains all methods to be generated and delegated to the JS
 * object. In addition this interface must extend IBinding.
 * 
 * 
 * @author Steffen Schäfer
 * 
 */
public interface IBinding {

	/**
	 * 
	 * 
	 * @param nativeObj
	 *            the native Object to bind
	 */
	void init(JavaScriptObject nativeObj);

}
